package testing;

import game.GameBase;

import javax.swing.JFrame;

import util.Util;

import GUI.Game;
import GUI.HUD;
import GUI.MapView;

public class GUITest 
{
	
	public static void main(String[] args)
	{
		JFrame kFrame = new JFrame("Falus");
		
		GameBase.get();
		Game.get().setPlayer(GameBase.instCharacterByTag("player-char"));
		Game.get().initPlayer("smled-mapa1");
		Game.get().getPlayer().GlobalTurnPassed();
		
		MapView view = new MapView();
		HUD hud = new HUD();
		view.setHud(hud);
		view.setMap(GameBase.getMapByTag("smled-mapa1"));
		
		
		kFrame.add(view);
		kFrame.setSize(1024, 640);
		//kFrame.setUndecorated(true);
		//kFrame.setSize(Util.getScreenSize().getSize());
		kFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		kFrame.setVisible(true);
		
		view.centerOn(Game.get().getPlayer());
		
	}

}
